﻿<%@ Page Title="User Management" Language="C#" MasterPageFile="~/Administration/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Administration_Users_Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPHMain" runat="Server">
    <asp:ListView ID="ListView1" runat="server" DataSourceID="UsersDataSource1">
        <EmptyDataTemplate>
            <p>No users types are defined.</p>
            <p>
                <altairis:IconHyperLink ID="IconHyperLink1" runat="server" Icon="UserAdd" Text="Create user" NavigateUrl="New.aspx" CssClass="strong" />
            </p>
        </EmptyDataTemplate>
        <LayoutTemplate>
            <table class="grid">
                <thead>
                    <th>User name</th>
                    <th>E-mail</th>
                    <th>Last login date</th>
                </thead>
                <tbody>
                    <tr>
                        <td colspan="3" class="newitem">
                            <altairis:IconHyperLink ID="IconHyperLink1" runat="server" Icon="UserAdd" Text="New user" NavigateUrl="New.aspx" />
                        </td>
                    </tr>
                    <asp:PlaceHolder ID="itemPlaceHolder" runat="server" />
                </tbody>
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <td class="strong">
                    <altairis:IconHyperLink ID="IconHyperLink2" runat="server" Icon="User" Text='<%# Eval("UserName") %>' NavigateUrl='<%# Eval("UserName", "Detail.aspx?UserName={0}") %>' />
                </td>
                <td>
                    <altairis:IconHyperLink ID="IconHyperLink3" runat="server" Icon="Email" Text='<%# Eval("Email") %>' NavigateUrl='<%# Eval("Email", "mailto:{0}") %>' />
                </td>
                <td class="r">
                    <altairis:DateLabel ID="DateLabel1" runat="server" DateValue='<%# Eval("LastLoginDate") %>' />
                </td>
            </tr>
        </ItemTemplate>
    </asp:ListView>
    <altairis:UsersDataSource ID="UsersDataSource1" runat="server" />
</asp:Content>
